package com.zzxy.spring21.service.impl;

import com.zzxy.spring21.service.IUserService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class UserServiceImpl implements IUserService {
    public UserServiceImpl(){

    }

    public UserServiceImpl(String username)
    {
        this.username = username;
    }

    private String username;



    public void setUsername(String username)
    {
        this.username = username;
    }

    @Override
    public void addUser() {
        System.out.println("add user success ..."+ username);

    }
}
